package com.easy.service;

import com.easy.bean.Doctor;
import com.easy.util.Page;

import java.util.List;
import java.util.Map;

/**
 * 用户服务接口（MVC中的Service层接口）
 * 作用：定义用户相关的业务方法，由实现类完成具体逻辑
 */

public interface DoctorService {
    Doctor add(Doctor doctor);

    int del(Integer id);

    Doctor edit(Doctor doctor);

    List<Doctor> all(Doctor doctor);

    Doctor one(Integer id);

    Object page(Page page, Doctor doctor);

    Map<String, Object> pageWithDepartment(Doctor doctor, int current, int limit);



}
